from numpy import *


def img2vector(filename):
    return_vct = zeros((1, 1024))
    fr = open(filename)
    for i in range(32):
        line_str = fr.readline()
        for j in range(32):
            return_vct[0, 32 * i + j] = int(line_str[j])
    return return_vct

print(len(img2vector("./0_0.txt")[0]))

